package com.doge.calcalbum.business.album.migrate

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.doge.calcalbum.db.model.Album
import com.doge.calcalbum.utils.isMainThread

class AlbumMigrateDialogViewModel : ViewModel() {
    val selectedEvent = MutableLiveData<Album?>()

    fun select(album: Album?) {
        if (album == null) return
        require(isMainThread())
        selectedEvent.value = album
        selectedEvent.value = null
    }
}